package com.wdd.owntool.di

import com.wdd.owntool.ui.mvp.MvpFragment
import com.wdd.owntool.ui.mvp.model.MvpModel
import com.wdd.tools.mvp.contract.MvpContract
import dagger.Module
import dagger.Provides

/**
 *
 * @ProjectName:    OwnTool
 * @Package:        com.wdd.owntool.di
 * @ClassName:      MvpModule
 * @Description:     java类作用描述
 * @Author:         王丹丹
 * @CreateDate:     2019/12/9 14:56
 * @UpdateUser:     更新者
 * @UpdateDate:     2019/12/9 14:56
 * @UpdateRemark:   更新说明
 * @Version:        1.0
 */
@Module
class MvpFragmentModule {


    @Provides
    fun obtainFragentView(fragment: MvpFragment): MvpContract.View {
        return fragment
    }

    @Provides
    fun obtainModel(model: MvpModel): MvpContract.Model {
        return model
    }
}